﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Kristall.Screens;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Kristall;


namespace Kristall
{
    public class MoveTool : Tool
    {
        public override Keys Hotkey
        {
            get { return Keys.D3; }
        }

        public override string CursorTexture
        {
            get { return "Move"; }
        }

        public override Vector2 CursorOffset
        {
            get
            {
                return new Vector2(16, 16);
            }
        }

        Vector2 dragOffset;

        public MoveTool(LevelEditor levelEditor) : base(levelEditor)
        {

        }

        public override void MouseDown(Vector2 mousePosition)
        {
            base.MouseDown(mousePosition);

            dragOffset = mousePosition;
        }

        public override void Update(float dt)
        {
            base.Update(dt);

            if (IsMouseDown)
            {
                //LevelEditor.Camera.Update(LevelEditor.Camera._position - (dragOffset - MousePosition), dt);
            }
        }
    }
}
